package com.htfyun.serialport.core;

import com.htfyun.serialport.utils.UsefulUtil;

public class SerialPortExtraControl {

    private final static String SERVO_POWER_PATH = "/sys/class/htfyun_servo/power";

    public static void setServoPowerOn(boolean on) {
        UsefulUtil.writeStringToFile(SERVO_POWER_PATH, on ? "1" : "0");
    }

}
